Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
7.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- **********************************************************************-->
  3. <!-- -->
  4. <!-- Copyright (c) 2000-2001 Microsoft Corporation -->
  5. <!-- -->
  6. <!-- This is the schema for the KB -->
  7. <!-- -->
  8. <!-- **********************************************************************-->
  9. <!-- **********************************************************************-->
  10. <!-- -->
  11. <!-- Revision History (remove this before shipping): -->
  12. <!-- -->
  13. <!-- 10/25/2001 - First Draft KB schema (vishnup) -->
  14. <!-- -->
  15. <!-- **********************************************************************-->
  16. <xsd:schema
  17. xmlns="msSSR"
  18. targetNamespace="msSSR"
  19. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  20. elementFormDefault="qualified">
  21. <!-- schema for SSR Knowledge Base -->
  22. <!-- definition of simple types for SSR Knowledge Base -->
  23. <xsd:simpleType name="SsrDataTypeBooleanEnum" base="NMTOKEN">
  24. <enumeration value="True"/>
  25. <enumeration value="False"/>
  26. <enumeration value="TRUE"/>
  27. <enumeration value="FALSE"/>
  28. </xsd:simpleType>
  29. <xsd:simpleType name="SsrDataTypeModeEnum" base="NMTOKEN">
  30. <enumeration value="True"/>
  31. <enumeration value="False"/>
  32. <enumeration value="TRUE"/>
  33. <enumeration value="FALSE"/>
  34. <enumeration value="DEFAULT"/>
  35. <enumeration value="CUSTOM"/>
  36. </xsd:simpleType>
  37. <xsd:simpleType name="SsrTypeRoleTypeEnum" base="NMTOKEN">
  38. <enumeration value="Independent"/>
  39. <enumeration value="Client"/>
  40. <enumeration value="Server"/>
  41. </xsd:simpleType>
  42. <xsd:simpleType name="SsrDataTypeName">
  43. <xsd:restriction base="xsd:string">
  44. <xsd:pattern value="xsd:string"/>
  45. </xsd:restriction>
  46. </xsd:simpleType>
  47. <xsd:simpleType name="SsrDataTypeDisplayName">
  48. <xsd:restriction base="xsd:string">
  49. <xsd:pattern value="xsd:string"/>
  50. </xsd:restriction>
  51. </xsd:simpleType>
  52. <xsd:simpleType name="SsrDataTypeDisplayText">
  53. <xsd:restriction base="xsd:string">
  54. <xsd:pattern value="xsd:string"/>
  55. </xsd:restriction>
  56. </xsd:simpleType>
  57. <xsd:simpleType name="SsrDataTypeRequired">
  58. <xsd:restriction base="xsd:string">
  59. <xsd:pattern value="xsd:string"/>
  60. </xsd:restriction>
  61. </xsd:simpleType>
  62. <xsd:simpleType name="SsrDataTypeMode">
  63. <xsd:restriction base="xsd:string">
  64. <xsd:pattern value="xsd:string"/>
  65. </xsd:restriction>
  66. </xsd:simpleType>
  67. <!-- TODO to define simple type for <Maximum Value="TRUE"/> -->
  68. <!-- definition of complex types for SSR Knowledge Base -->
  69. <xsd:complexType name="SsrDataTypeDescription">
  70. <xsd:sequence>
  71. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  72. <xsd:element name="DisplayName" type="SsrDataTypeDisplayName" minOccurs="1" maxOccurs="1"/>
  73. </xsd:sequence>
  74. </xsd:complexType>
  75. <xsd:complexType name="SsrDataTypeLevel">
  76. <xsd:sequence>
  77. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  78. <xsd:element name="DisplayName" type="SsrDataTypeDisplayName" minOccurs="1" maxOccurs="1"/>
  79. <xsd:element name="DisplayText" type="SsrDataTypeDisplayText" minOccurs="1" maxOccurs="1"/>
  80. </xsd:sequence>
  81. </xsd:complexType>
  82. <xsd:complexType name="SsrDataTypeSecurityLevels">
  83. <xsd:sequence>
  84. <xsd:element name="Level" type="SsrDataTypeLevel" minOccurs="1" maxOccurs="unbounded"/>
  85. </xsd:sequence>
  86. </xsd:complexType>
  87. <xsd:complexType name="SsrDataTypeMaximum">
  88. <xsd:sequence>
  89. <xsd:attribute name="Value" type="SsrDataTypeModeEnum" use="required"/>
  90. <xsd:attribute name="FunctionName" type="SsrDataTypeName" use="optional"/>
  91. <xsd:attribute name="DllName" type="SsrDataTypeName" use="optional"/>
  92. </xsd:sequence>
  93. </xsd:complexType>
  94. <xsd:complexType name="SsrDataTypeTypical">
  95. <xsd:sequence>
  96. <xsd:attribute name="Value" type="SsrDataTypeModeEnum" use="required"/>
  97. <xsd:attribute name="FunctionName" type="SsrDataTypeName" use="optional"/>
  98. <xsd:attribute name="DllName" type="SsrDataTypeName" use="optional"/>
  99. </xsd:sequence>
  100. </xsd:complexType>
  101. <xsd:complexType name="SsrDataTypeSelect">
  102. <xsd:sequence>
  103. <xsd:element name="Maximum" type="SsrDataTypeMaximum" minOccurs="1" maxOccurs="1"/>
  104. <xsd:element name="Typical" type="SsrDataTypeTypical" minOccurs="1" maxOccurs="1"/>
  105. </xsd:sequence>
  106. </xsd:complexType>
  107. <xsd:complexType name="SsrDataTypeService">
  108. <xsd:sequence>
  109. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  110. <xsd:element name="Required" type="SsrDataTypeRequired" minOccurs="1" maxOccurs="1"/>
  111. <xsd:element name="Select" type="SsrDataTypeSelect" minOccurs="1" maxOccurs="1"/>
  112. </xsd:sequence>
  113. </xsd:complexType>
  114. <xsd:complexType name="SsrDataTypeServices">
  115. <xsd:sequence>
  116. <xsd:element name="Name" type="SsrDataTypeService" minOccurs="0" maxOccurs="unbounded"/>
  117. </xsd:sequence>
  118. </xsd:complexType>
  119. <xsd:complexType name="SsrDataTypeRole">
  120. <xsd:sequence>
  121. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="0" maxOccurs="unbounded"/>
  122. <xsd:element name="Selected" type="SsrDataTypeSelect" minOccurs="1" maxOccurs="1"/>
  123. <xsd:element name="Services" type="SsrDataTypeServices" minOccurs="1" maxOccurs="1"/>
  124. <xsd:attribute name="Type" type="SsrTypeRoleTypeEnum"/>
  125. </xsd:sequence>
  126. </xsd:complexType>
  127. <xsd:complexType name="SsrDataTypeRoles">
  128. <xsd:sequence>
  129. <xsd:element name="Role" type="SsrDataTypeRole" minOccurs="0" maxOccurs="unbounded"/>
  130. </xsd:sequence>
  131. </xsd:complexType>
  132. <xsd:complexType name="SsrDataTypeQuestionService">
  133. <xsd:sequence>
  134. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  135. </xsd:sequence>
  136. </xsd:complexType>
  137. <xsd:complexType name="SsrDataTypeQuestionServices">
  138. <xsd:sequence>
  139. <xsd:element name="Service" type="SsrDataTypeQuestionService" minOccurs="1" maxOccurs="unbounded"/>
  140. </xsd:sequence>
  141. </xsd:complexType>
  142. <xsd:complexType name="SsrDataTypeQuestion">
  143. <xsd:sequence>
  144. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  145. <xsd:element name="Services" type="SsrDataTypeQuestionServices" minOccurs="1" maxOccurs="1"/>
  146. </xsd:sequence>
  147. </xsd:complexType>
  148. <xsd:complexType name="SsrDataTypeQuestions">
  149. <xsd:sequence>
  150. <xsd:element name="Question" type="SsrDataTypeQuestion" minOccurs="1" maxOccurs="unbounded"/>
  151. </xsd:sequence>
  152. </xsd:complexType>
  153. <!-- definition of the highest level complex type for SSR Knowledge Base -->
  154. <xsd:element name="SSRKnowledgeBase">
  155. <xsd:complexType>
  156. <xsd:sequence>
  157. <xsd:element name="Description" type="SsrDataTypeDescription" minOccurs="1" maxOccurs="1"/>
  158. <xsd:element name="SecurityLevels" type="SsrDataTypeSecurityLevels" minOccurs="1" maxOccurs="1"/>
  159. <xsd:element name="Roles" type="SsrDataTypeRoles" minOccurs="1" maxOccurs="1"/>
  160. <xsd:element name="Questions" type="SsrDataTypeQuestions" minOccurs="1" maxOccurs="1"/>
  161. </xsd:sequence>
  162. </xsd:complexType>
  163. </xsd:element>
  164. </xsd:schema>